<template>
  <!-- 行动轨迹 -->
  <el-container>
    <el-header>
      <div class="left-panel"></div>
      <div class="right-panel">
        <div class="right-panel-search">
          <el-input
            v-model="searchValue.search"
            placeholder="用户名称"
            clearable
          ></el-input>
          <el-button
            type="primary"
            icon="el-icon-search"
            @click="upsearch"
          ></el-button>
        </div>
      </div>
    </el-header>
    <el-main class="nopadding">
      <scTable ref="table" :apiObj="apiObj" row-key="id" stripe>
        <el-table-column label="ID" prop="id" width="80"></el-table-column>
        <el-table-column
          label="姓名"
          prop="username"
          width="300"
        ></el-table-column>
        <el-table-column
          label="时间"
          prop="createTime"
          width="300"
        ></el-table-column>
        <el-table-column label="地点" prop="address"></el-table-column>
      </scTable>
    </el-main>
  </el-container>
</template>

<script>


export default {
  name: 'logList',
  data () {
    return {
      apiObj: this.$API.user.getUserSiteList,
      params: {},
      searchValue: {
        search: null
      }
    }
  },
  methods: {
    //搜索
    upsearch () {
      this.$refs.table.upData(this.searchValue)
    },
  },
  created () {
    let userInfo = this.$TOOL.data.get('USER_INFO')
    this.params.adminId = userInfo.userId
  }
}
</script>

<style>
</style>
